<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
    <h2>用户列表</h2>
    <hr>
    <ul>
        {% for user in users %}
            <a href="{% url 'user:userdetail' user.id %}">
                {{ user.name }} - {{ user.age }}
            </a>
            <br>
        {% endfor %}
    </ul>
</body>
</html>